package org.yejiali.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yejiali.common.response.ResponseResult;
import org.yejiali.service.CategoryService;

/**
 * @Author:yejiali
 * @Date:2025/2/17-02-17-19:21
 * @Decsription:org.yejiali.controller
 * @Version:1.0
 */
@Api("分类管理")
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList(){
       return categoryService.getCategoryList();
    }


}
